﻿// <copyright file="ISquareProvider.cs" company="Ecole Normale Supérieure">
// Released under GPLv2
// </copyright>
// <summary>Contains the ISquareProvider Interface</summary>

namespace Sqwarea.Persistence
{
    using System.Drawing;

    /// <summary>
    /// Basic interface providing access to squares by their position
    /// </summary>
    public interface ISquareProvider
    {
        /// <summary>
        /// Basic method of this interface.
        /// </summary>
        /// <param name="position">The coordinates of the square to be got</param>
        /// <returns>The square needed</returns>
        Square GetSquareByPosition(Point position);
    }
}
